Configuration Settings
The Script Widget settings panel supports the ability to define key-value pairs. Those values can be referenced within the script, making it easier to update scripts and their settings without altering code.
In the image below you can see the key/value pair definitions. You'll use the "key" to reference the "value" in your code, just like a constant. You can also Add New to create a new pair, or click the trash bin to remove a value.
Reference these values in your code like this:
<script>
const myValue = window.SmartSuite.get_config("TEST");
console.log(`Value: ${myValue}`);
</script>